<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta http-equiv="X-UA-Compatible" content="ie=edge">
		<title>华胜后台管理</title>
		<link rel="stylesheet" type="text/css" href="css/unified.css">
		<script src="plugins/layui/layui.js"></script>
	</head>

	<body>
		<div class="breadcrumbnav">
			<span class="layui-breadcrumb " lay-separator="·">
				<a ><cite>首页</cite></a>
		 		<a ><cite>广告位管理</cite></a>
			</span>
		</div>
		<div class="kit-doc">
			<!-- 标题 -->
			<div class="kit-doc-title">
				<fieldset>
					<legend>
						<a name="blockquote">广告位</a>
					</legend>
				</fieldset>
			</div>
			<!-- 标题 end-->
			
			<div class="boderbox">
				<div class="rowtop">
					<button class="layui-btn addbtn openwinbtn" data-method="addmang">添加+</button>
					<!--<form class="layui-form searchform" action="" id="comSearchForm">
			            <div class="layui-input-inline">
			              <input type="text" name="text" required lay-verify="required" placeholder="输入关键字" autocomplete="off" class="layui-input">
			            </div>
			            <div class="layui-btn-group">
			              <button class="layui-btn">搜索</button>
			              <button class="layui-btn layui-btn-normal">重置</button>
			            </div>
			          </form>-->
				</div>
				<div class="layui-tab-content notab">
					<div class="layui-tab-item layui-show">
						<table class="layui-table " lay-filter="table100" id="cctable"></table>
					</div>
				</div>
				
				<!--图片iframe-->
				<iframe id="framFile" name="framFile" style="display: none;"></iframe>
				<iframe id="framFile1" name="framFile1" style="display: none;"></iframe>

				<script id="addBox" type="text/html">
					<div class=" layui-layer-wrap">
						<form class="layui-form layui-form-pane" action="" id="addform">
							
							<div class="layui-col-xs12 layui-col-sm12 layui-col-md12">
								<div class="layui-form-item">
									<label class="layui-form-label">图片名称</label>
									<div class="layui-input-block">
										<input type="text" name="name" autocomplete="off" lay-verify="number|required" placeholder="" class="layui-input">
									</div>
								</div>
							</div>
							<div class="layui-col-xs12 layui-col-sm12 layui-col-md12">
								<div class="layui-form-item">
									<label class="layui-form-label">链接地址</label>
									<div class="layui-input-block">
										<input type="text" name="linkurl" autocomplete="off" lay-verify="required" placeholder="" class="layui-input">
									</div>
								</div>
							</div>
							
							
							<div class="layui-col-xs12 layui-col-sm12 layui-col-md12">
								<div class="layui-form-item">
									<label class="layui-form-label">备注</label>
									<div class="layui-input-block">
										<input type="text" name="remark" autocomplete="off" lay-verify="number|required" placeholder="" class="layui-input">
									</div>
								</div>
							</div>
							
							
							<div class="layui-col-xs12 layui-col-sm12 layui-col-md12">
								<div class="layui-form-item">
									<label class="layui-form-label">排序</label>
									<div class="layui-input-block">
										<input type="text" name="sort" autocomplete="off" lay-verify="required" placeholder="" class="layui-input">
									</div>
								</div>
							</div>

							
							<div class="layui-col-xs12 layui-col-sm12 layui-col-md12">
								<div class="layui-form-item" pane="">
									<label class="layui-form-label">是否显示</label>
									<div class="layui-input-block check2em">
										<input type="checkbox" checked="" name="setBanner" lay-skin="switch" lay-filter="switchTest" lay-text="确定|取消" value="1">
									</div>
								</div>
							</div>
						</form>
						<div class="layui-col-xs12 layui-col-sm12 layui-col-md12">
							<div class="layui-form-item">
								<form action="#" method="post" enctype="multipart/form-data" target="framFile1" class="updataform1 imgbox">
									<input type="button" class="layui-btn-primary imgbtn" value="选择图片" />
									<input type="file" class=" imgfile" name="files" multiple="true" value="选择文件" accept="image/*" onchange="xmTanUploadImg(this)" />
									<input type="button" class="layui-btn upNewimg" value="确认上传" style="" />
									<img id="xmTanImg" class="xmTanImg" />
								</form>

							</div>

						</div>

					</div>
				</script>

				<script type="text/html" id="checkboxTpl0">
					<input type="checkbox" name="setBanner" value="{{d.id}}" title="是" lay-filter="lockDemo0" {{ d.setBanner==1 ? 'checked' : '' }}>
				</script>

				<script type="text/html" id="checkboxTpl">
					<input type="checkbox" name="status" value="{{d.id}}" title="显示" lay-filter="lockDemo" {{ d.status==1 ? 'checked' : '' }}>
				</script>

				<script type="text/html" id="checkboxTpl2">
					<input type="checkbox" name="isComment" value="{{d.id}}" title="评论" lay-filter="lock2Demo" {{ d.isComment==1 ? 'checked' : '' }}>
				</script>
				
				<script type="text/html" id="checkboxTpl3">
					<input type="checkbox" name="isRecommend" value="{{d.id}}" title="推荐" lay-filter="lock3Demo" {{ d.isRecommend==1 ? 'checked' : '' }}>
				</script>

				<script src="js/jquery-3.2.1.min.js"></script>
				<script type="text/javascript" src="js/allajax.js"></script>
				<script type="text/javascript" src="js/banner.js" ></script>
			</div>
			<!-- 概述 end-->
		</div>
	</body>

</html>